

import java.util.Comparator;

public class ChairComparator implements Comparator<Chair>,java.io.Serializable {
    @Override
    public int compare(Chair o1, Chair o2){
        if (o1.getLen() < o2.getLen())
            return 1;
        else if (o1.getLen() == o2.getLen())
            return 0;
        else
            return -1;

    }
}
